<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/reset.css" />
<!-- RESET -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/main.css" />
<!-- MAIN STYLE SHEET -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/2col.css" title="2col" />
<!-- DEFAULT: 2 COLUMNS -->
<link rel="alternate stylesheet" media="screen,projection" type="text/css" href="./css/admin/1col.css" title="1col" />
<!-- ALTERNATE: 1 COLUMN -->
<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="./css/main-ie6.css" /><![endif]-->
<!-- MSIE6 -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/style.css" />
<!-- GRAPHIC THEME -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/mystyle.css" />
<!-- WRITE YOUR CSS CODE HERE -->
<link href="./css/boxy.css" rel="stylesheet" type="text/css" />
<{insert_scripts files="./js/jquery-1.7.2.min.js,./js/toggle.js,./js/toggle.js,./js/ui.core.js,./js/ui.tabs.js,./js/jquery.boxy.js"}>
<script type="text/javascript">

$(function(){
	$(".tabs > ul").tabs();
	$("#s_s").bind("click",function(){
		var pflag=true;
		$(".s_chk").each(function(){
			if($(this).val()==""){
				$(this).next("span").show();
				pflag=false;
			}
		});
		if(!pflag){return false;}
	});
	$(".s_chk").focus(function(){
		$(".input_error").hide();
	});	
	$("#a_s").bind("click",function(){
		var aflag=true;
		$(".a_chk").each(function(){
			if($(this).val()==""){
				$(this).next("span").show();
				aflag=false;
			}
		});
		if(!aflag){return false;}
	});
	$(".a_chk").focus(function(){
		$(".input_error_a").hide();
	});	
	$("#r_s").bind("click",function(){
		if($("#admin_select").val()==0){
			alert("请指定管理员!");
			return false;	
		}
	});
	$(".dataDel").click(function() {tempUrl=$(this).attr("href"); Boxy.confirm("确定删除此管理员？", function() {window.location.href=tempUrl}, {title: "提示信息"}); return false; });
	$("#admin_select").change(function(){
		 auth($(this).val());
	});
});
function auth(i){
	$(".tabs > ul").tabs("select",3);
	$("#admin_select").val(i);
	if($(".authstatus_"+i).length!=0){
		$(".authstatus_"+i).each(
			function(j){
				if($(this).attr("alt")=="1"){
					$(".chkbox").eq(j).attr("checked","checked");
				}else{
					$(".chkbox").eq(j).attr("checked",false);
				}	
			}
		);
	}else{
		$(".chkbox").attr("checked",false);
	}
}
	</script>
<title>后台管理首页</title>
</head>
<body>
<div id="main">
  <!-- Tray -->
  <div id="tray" class="box">
    <p class="f-left box">
      <!-- Switcher -->
      <span class="f-left" id="switcher"> <a href="#" rel="1col" class="styleswitch ico-col1" title="Display one column"><img src="images/admin/switcher-1col.gif" alt="1 Column" /></a> <a href="#" rel="2col" class="styleswitch ico-col2" title="Display two columns"><img src="images/admin/switcher-2col.gif" alt="2 Columns" /></a> </span> 网站后台管理系统: <strong>WISE-ANALYSIS </strong> </p>
    <p class="f-right">欢迎: <strong><{$smarty.session.adminUserName}></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><a href="<{spUrl c=admin a=logout}>

" id="logout">退出</a></strong></p>
  </div>
  <!--  /tray -->
  <hr class="noscreen" />
  <!-- Menu -->
<{include file="./admin/top.htm" }>   
  <!-- /header -->
  <hr class="noscreen" />
  <!-- Columns -->
  <div id="cols" class="box">
<{include file="./admin/common.htm" }> 

    <hr class="noscreen" />
    <!-- Content (Right Column) -->
  
 
 <div id="content" class="box box1" style="min-height:550px;">
      <h1 class="tit">管理员管管理</h1>

      <div class="tabs box">
        <ul>
          <li><a href="#tab01"><span>修改密码</span></a></li>
          <{if $smarty.session.adminType==1}>
          <li><a href="#tab02"><span>添加管理员</span></a></li>
          <li><a href="#tab03"><span>管理员列表</span></a></li>
          <li><a href="#tab04"><span>权限设置</span></a></li>
          
          <{/if}>
        </ul>
      </div>
      <!-- /tabs -->
      <!-- Tab01 -->
      <div id="tab01">
      <form  method="post" name="indexsetting" action="./index.php?c=admin&a=index&mod=passChangeAction" >
      <fieldset>
      <legend>修改密码</legend>
      <table class="nostyle">
        <tr>
          <td style="width:90px;">登录账号:</td>
          <td><input type="text" size="40" class="input-text" disabled="disabled" value="<{$smarty.session.adminUserName}>" /></td>
        </tr>      
        <tr>
          <td style="width:90px;">输入旧密码:</td>
          <td><input type="password" size="40" name="Pass"  class="input-text s_chk"/><span class="input_error"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span> <font>此处不能为空,请填写完整！</font></span></td>
        </tr>
        <tr>
          <td style="width:90px;">输入新密码:</td>
          <td><input type="password" size="40" name="NewPass" class="input-text s_chk"/><span class="input_error"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span> <font>此处不能为空,请填写完整！</font></span></td>
        </tr>
        <tr>
          <td style="width:90px;">重复新密码:</td>
          <td><input type="password" size="40" name="ReNewPass" class="input-text s_chk" /><span class="input_error"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span> <font>此处不能为空,请填写完整！</font></span></td>
        </tr>                
        <tr>
          <td></td>
          <td><input type="submit" id='s_s' class="input-submit" value="提交" /></td>
        </tr>
      </table>
      </fieldset>       
       </form>      
      </div>
      <!-- /tab01 -->
<{if $smarty.session.adminType==1}>      
      <!-- Tab02 -->
      <div id="tab02">
       <form  method="post" name="indexsetting" action="./index.php?c=admin&a=index&mod=adminAddAction" >
      <fieldset>
      <legend>添加管理账户</legend>
      <table class="nostyle">
        <tr>
          <td style="width:90px;">登录账号:</td>
          <td><input type="text" size="40" class="input-text a_chk" name="User"  value="" /><span class="input_error_a"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span> <font>此处不能为空,请填写完整！</font></span></td>
        </tr>      
        <tr>
          <td style="width:90px;">登录密码:</td>
          <td><input type="password" size="40" name="Pass"  class="input-text a_chk"/><span class="input_error_a"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span> <font>此处不能为空,请填写完整！</font></span></td>
        </tr>
        <tr>
          <td style="width:90px;">重复密码:</td>
          <td><input type="password" size="40" name="RePass" class="input-text a_chk"/><span class="input_error_a"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span> <font>此处不能为空,请填写完整！</font></span></td>
        </tr>
        <tr>
          <td style="width:90px;">备注名称:</td>
          <td><input type="text" size="40"  name="Name" class="input-text a_chk" /><span class="input_error_a"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span> <font>此处不能为空,请填写完整！</font></span></td>
        </tr>                
        <tr>
          <td></td>
          <td><input type="submit" id='a_s' class="input-submit" value="提交" /></td>
        </tr>
      </table>
      </fieldset>       
       </form>       
        
        
      </div>
      <!-- /tab02 -->
      <!-- Tab03 -->
      <div id="tab03">
      <table class="aligncenter">
        <tr>
          <th >备注昵称</th>
          <th >登录账号</th>
          <th >添加时间</th>
          <th >所属管理组</th>
          <th  width="435">管理权限</th>
          <th >可用操作</th>
        </tr>
        <{foreach from=$res item=datil key=id}> 
        <tr <{if $id%2!=0}>class="bg"<{/if}>>
          <td><{$datil.name}></td>
          <td><{$datil.username}></td>
          <td><{$datil.inttime|date_format:'%Y-%m-%d %H:%M:%S'}></td>
          <td><{if $datil.system==1}>系统<{else}>普通<{/if}></td>
          <td>
          <span style="display:block">
          [<img class='authstatus_<{$datil.id}>' alt="<{$datil.auth.0}>" src='./images/admin/<{if $datil.system==1 || $datil.auth.0==1}>yes.gif<{else}>no.gif<{/if}>'/>系统设置]&nbsp;&nbsp;
          [<img class='authstatus_<{$datil.id}>' alt="<{$datil.auth.1}>" src='./images/admin/<{if $datil.system==1 || $datil.auth.1==1}>yes.gif<{else}>no.gif<{/if}>'/>文章管理]&nbsp;&nbsp;
          [<img class='authstatus_<{$datil.id}>' alt="<{$datil.auth.2}>" src='./images/admin/<{if $datil.system==1 || $datil.auth.2==1}>yes.gif<{else}>no.gif<{/if}>'/>技术分析]&nbsp;&nbsp;
          [<img class='authstatus_<{$datil.id}>' alt="<{$datil.auth.3}>" src='./images/admin/<{if $datil.system==1 || $datil.auth.3==1}>yes.gif<{else}>no.gif<{/if}>'/>专家简评]&nbsp;&nbsp;
          </span>
          <span style="display:block">
          [<img class='authstatus_<{$datil.id}>' alt="<{$datil.auth.4}>" src='./images/admin/<{if $datil.system==1 || $datil.auth.4==1}>yes.gif<{else}>no.gif<{/if}>'/>实盘直播]&nbsp;&nbsp;
          [<img class='authstatus_<{$datil.id}>' alt="<{$datil.auth.5}>" src='./images/admin/<{if $datil.system==1 || $datil.auth.5==1}>yes.gif<{else}>no.gif<{/if}>'/>咨询反馈]&nbsp;&nbsp;
          [<img class='authstatus_<{$datil.id}>' alt="<{$datil.auth.6}>" src='./images/admin/<{if $datil.system==1 || $datil.auth.6==1}>yes.gif<{else}>no.gif<{/if}>'/>会员管理]&nbsp;&nbsp;
          [<img class='authstatus_<{$datil.id}>' alt="<{$datil.auth.7}>" src='./images/admin/<{if $datil.system==1 || $datil.auth.7==1}>yes.gif<{else}>no.gif<{/if}>'/>帮助中心]&nbsp;&nbsp;
          </span>
          </td>
          <td><{if $datil.system==1}><font color="#ccc">[无可用操作]</font><{else}>
          [&nbsp;<a href="javascript:auth(<{$datil.id}>)" title="修改管理员权限"><img  src="./images/admin/icon-16-groups.png"/></a>
          
          &nbsp;&nbsp;&nbsp;&nbsp;
          <a class="dataDel" href="./index.php?c=admin&a=index&mod=adminDelAction&id=<{$datil.id}>" title="删除此管理员"><img  src="./images/admin/icon-16-delete.png"/></a>&nbsp;]<{/if}></td>
        </tr>
       <{/foreach}> 
      </table>


      </div>
      <!-- /tab03 -->
      <!-- Tab04 -->
       <div id="tab04">
  <form  method="post" name="indexsetting" action="./index.php?c=admin&a=index&mod=authChangeAction" >
   <fieldset>
 <legend>权限设置</legend>
      <table class="nostyle">
        <tr>
          <td style="width:90px;">选择管理员:</td>
          <td>
			<select name='admin_id' id="admin_select">
   				 <{html_options options=$admin_options selected=$admin_id}>
			</select>
          
          </td>
        </tr>
                <tr><td colspan="2">&nbsp;&nbsp;</td></tr>
        <tr>
          <td>权限:</td>
          <td><label>
            <input name="a_0" class="chkbox" type="checkbox" />
            系统设置</label>
            &nbsp;
            <label>
            <input name="a_1" class="chkbox" type="checkbox" />
            咨询反馈</label>
            &nbsp;
            <label>
            <input name="a_2" class="chkbox" type="checkbox" />
            技术分析</label>
            <label>
            <input name="a_3" class="chkbox" type="checkbox" />
            专家简评</label>
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
                  <td><label>
            <input name="a_4" class="chkbox" type="checkbox" />
            实盘直播</label>
            &nbsp;
            <label>
            <input name="a_5" class="chkbox"  type="checkbox" />
            文章管理</label>
            &nbsp;
            <label>
            <input name="a_6" class="chkbox" type="checkbox" />
            会员管理</label>
            <label>
            <input name="a_7" class="chkbox" type="checkbox" />
            帮助中心</label>
          </td>
        </tr>
        <tr>
          <td></td><td><input type="submit" id="r_s" class="input-submit" value="提交" /></td>
        </tr>
      </table>
      </fieldset>
     </form> 
      </div>
      <!-- /tab04 -->     
<{/if}>

 
 
 
 </div>  
</div>  
  
  
  
  
  
  <!-- /cols -->
  <hr class="noscreen" />
  <!-- Footer -->
  <div id="footer" class="box">
    <p class="f-left">&copy; 2012 All Rights Reserved &reg;</p>
    <p class="f-right">技术支持<a href="#/"></a> QQ:1242369560</p>
  </div>
  <!-- /footer -->
</div>
<!-- /main -->
</body>
</html>
